<div id="hello">
  <div class="hello_in margin">
    <div class="fl">欢迎访问中山市优科光电有限公司官方网站!</div>
    
    <div class="fr">
      <a class="en {if(BI=='en')}on{end}" href="index.php?template=en">EN</a>
      <a class="zh {if(BI=='cn')}on{end}" href="index.php?template=default">中文</a>
    </div>
    
    <div class="clear"></div>
  </div>
</div><!--hello-->

<div id="top">
  <div class="top_in">
    <div class="top_bor margin">
      <div class="logo"><a href="index.php"><img src="images/logo.gif" /></a></div>
      
      <div class="search">
        <form action="{:SITE_URI}search.php?act=searchlink" method="post">
          <input type="hidden" name="stype" value="products">
          <input class="sear_t" type="text" name="keywords" placeholder="搜索..." />
          <input class="sear_b" type="submit" value="" />
          <div class="clear"></div>
        </form>
      </div><!--search-->
      
      <div class="tel">全国免费咨询热线：<span>400-000-000</span></div>
    </div>
  </div><!--top_in-->
</div><!--top-->

<div class="nav">
  <div class="nav_in margin">
    <ul>
      <li class="{if($navid=='home')}nav_on{end}"><a class="nav_a" href="home.php">{:lan("cn"=>"首页","en"=>"Home")}</a></li>
      <li class="{if($navid=='products')}nav_on{end}"><a class="nav_a" href="products.php">{:lan("cn"=>"产品展示","en"=>"Products")}</a></li>
      <li class="{if($navid=='contact')}nav_on{end}"><a class="nav_a" href="contact.php">自定义表单</a></li>
      <li class="{if($navid=='form')}nav_on{end}"><a class="nav_a" href="form.php">在线留言</a></li>
      <li class="{if($navid=='cart')}nav_on{end}"><a class="nav_a" href="cart.php">询盘表单</a></li>
      <li class="{if($navid=='cart')}nav_on{end}"><a class="nav_a" href="aboutus.php">API发送邮件</a></li>
      <div class="clear"></div>
    </ul>
  </div>
</div><!--nav-->

<div class="padding_tb margin">
多语言版本不同文本的显示方法一：适用于简单文本<br />
{:lan("cn"=>"中文","en"=>"English")}<br /><br />

多语言版本不同文本的显示方法二：适用于比较复杂的html代码<br />
<!-- if(BI=="cn") -->
<link href="css/cn.css" type="text/css" rel="stylesheet" />
<div class="cn">如果是中文</div>

<!-- elseif(BI=="en") -->
<link href="css/en.css" type="text/css" rel="stylesheet" />
<div class="en">如果是英文</div>

<!-- end -->
</div>